/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rule;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 *
 * @author Omega
 */
public abstract class NewRule {
    private List<Clause> list;
    private double totalPunctuation;
    private String pass;
    
    public NewRule(ArrayList<Clause> l){
        list = l;
    }
    
    public void setPass(String p){
        pass = p;
    }
    
    public String getPass(){
        return pass;
    }
    public abstract boolean ruleValue();
    public abstract String outputMessage();
    
    public double getTotalPunctuation(){
        return totalPunctuation;
    }
    
    public double rulePunctuation(){
        
        for(Clause c : list)
        {
            totalPunctuation += c.getScore();
        }
        return totalPunctuation;
    }

    public List<Clause> getList() {
        return list;
    }
    
}
